package com.foreknow.service;

import com.foreknow.entity.Department;

import java.util.List;

public interface DepartmentService {
    /**
     * 获取科室列表
     * @return
     */
    List<Department> searchInfo(Department department);

    /**
     * 删除科室信息
     * @param id
     * @return
     */
    int deleteDepartment(Integer id);

    /**
     * 添加科室信息
     * @param department
     * @return
     */
    int insertDepartment(Department department);

    /**
     * 修改之前查询科室信息
     * @param id
     * @return
     */
    Department searchDepartmentById(Integer id);

    /**
     * 修改科室信息
     * @param department
     * @return
     */
    int updateDepartment(Department department);
}
